<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$webname}-CMS内容管理系统</title>
<load href='__PUBLIC__/Css/basic.css' />
<load href='__PUBLIC__/Css/feedback.css' />
</head>
<body>

<div id="top">
	<if condition="$is_log eq true">
	{$name}，您好！ <a href="__APP__/User/logout">退出</a>
	<else />
	<a href="__APP__/User/register" class="user">注册</a> <a href="__APP__/User/login" class="user">登录</a>
	</if>
	<a href="###" class="adv" target="_blank">这里放文字广告！</a>
</div>
<div id="header">
	<h1><a href="###">{$webname}</a></h1>
	<div class="adver"><!--<script type="text/javascript" src="js/header_adver.js"></script> --></div>
</div>
<div id="nav">
	<ul>
		<li><a href="__APP__">首页</a></li>
		<volist name="nav" id="nav">
		<li><a href="__APP__/List/show/id/{$nav.id}">{$nav.category_name}</a></li>
		</volist>
	</ul>
</div>
<div id="search">
	<form method="get" action="__APP__/Search/show">
		<select name="type">
			<option selected="selected" value="title">按标题</option>
			<option value="keyword">按关键字</option>
		</select>
		<input type="text" name="inputkeyword" class="text" />
		<input type="submit" class="submit" value="搜索" />
	</form>
	<strong>TAG标签：</strong>
	<ul>
	<!-- 
		{if $FiveTag}
		{foreach $FiveTag(key,value)}
		<li><a href="search.php?type=3&inputkeyword={@value->tagname}">{@value->tagname}({@value->count})</a></li>
		{/foreach}
		{/if}
	 -->
	</ul>
</div>
<div id="feedback">
	<h2>评论列表</h2>
	<h3>{$art.title}</h3>
	<p class="info">[内容简介：]{$art.info}<a href="__APP__/List/details/id/{$art.id}" target="_blank">[详情]</a></p>
	<if condition="$topThreeCom">
	<h4>支持率最高的三条评论：</h4>
	<volist name="topThreeCom" id="topThreeCom">
	<dl>
	<if condition="$topThreeCom.uid eq 0">
		<dt><img src="__PUBLIC__/Images/00.gif" alt="游客" /></dt>
		<dd><em>{$topThreeCom.date|date="Y-m-d",###} 发表</em><span>[游客]</span> <img src="__PUBLIC__/Images/hot.gif" alt="热" /></dd>
		
	<else />
		<dt><img src="__PUBLIC__/Images/{$topThreeCom.face}" alt="{$topThreeCom.user}" /></dt>
		<dd><em>{$topThreeCom.date|date="Y-m-d",###} 发表</em><span>[{$topThreeCom.user}]</span> <img src="__PUBLIC__/Images/hot.gif" alt="热" /></dd>
	</if>
		<dd class="info">[{$comData.manner|getManner}]:&nbsp;{$comData.content}</dd>
		<dd class="bottom"><a href="__APP__/Comment/support/id/{$topThreeCom.id}" target="_blank">[{$topThreeCom.support}]支持</a> <a href="__APP__/Comment/oppose/id/{$topThreeCom.id}"  target="_blank">[{$topThreeCom.oppose}]反对</a></dd>
	</dl>
	</volist>
	</if>
	<h4>所有评论</h4>
	<if condition="$comData">
	<volist name="comData" id="comData">
	<dl>
	<if condition="$comData.uid eq 0">
		<dt><img src="__PUBLIC__/Images/00.gif" alt="游客" /></dt>
		<dd><em>{$comData.date|date="Y-m-d",###} 发表</em><span>[游客]</span></dd>
	<else />
		<dt><img src="__PUBLIC__/Images/{$comData.face}" alt="{$comData.user}" /></dt>
		<dd><em>{$comData.date|date="Y-m-d",###} 发表</em><span>[{$comData.user}]</span></dd>
	</if>
		<dd class="info">[{$comData.manner|getManner}]:&nbsp;{$comData.content}</dd>
		<dd class="bottom"><a href="__APP__/Comment/support/id/{$comData.id}" target="_blank">[{$comData.support}]支持</a> <a href="__APP__/Comment/oppose/id/{$comData.id}"  target="_blank">[{$comData.oppose}]反对</a></dd>
	</dl>
	</volist>
	<else />
	<dl>
		<dd>此文档没有任何评论！</dd>
	</dl>
	</if>
	<div id="page">{$page}</div>
</div>
<div id="sidebar">
	<h2>热评文档总排行</h2>
	<ul>
	<if condition="$topTwentyArt">
		<volist name="topTwentyArt" id="topTwentyArt">
		<li><a href="__APP__/List/details/id/{$topTwentyArt.id}" target="_blank">{$topTwentyArt.title}</a></li>
		</volist>
	</if>
	</ul>
</div>
<div class="d5">
	<form method="post" name="comment" action="__APP__/Comment/insert" target="_blank">
		<input type="hidden" name="aid" value="{$art.id}" />
		<input type="hidden" name="uid" value="{$user_id}" />
		<p>你对本文的态度：<input type="radio" name="manner" value="1" checked="checked" /> 支持
									<input type="radio" name="manner" value="0" /> 中立
									<input type="radio" name="manner" value="-1" /> 反对
		</p>
		<p class="red">请互联网规则，不要发表关于政治、反动、色情之类的评论。</p>
		<p><textarea name="content"></textarea></p>
		<p style="position:relative;top:-5px;">
			 验证码：<input type="text" class="text" name="verify" />
			 <img src="__APP__/Public/verify" onclick="javascript:this.src='__APP__/Public/verify/tm/'+Math.random();" class="code" /> 
			 <input type="submit" class="submit" onclick="return checkComment();" name="send" value="提交评论" />
		</p>
	</form>
</div>
<include file="Public:footer" />